package com.samuel.basics.entity;

import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>书籍索引</p>
 *
 * @author aneng huang
 * @since 2020-12-25 09:30:14
 */
@Document(indexName = "book", indexStoreType = "fs")
public class BookEntity implements Serializable {

    private static final long serialVersionUID = -263585377994126068L;

    private String id;
    @Field(value = "bookName", analyzer = "ik_analyzer")
    private String bookName;
    @Field(value = "authorName", index = false, analyzer = "ik_analyzer")
    private String authorName;
    private String context;
    private LocalDateTime modifyDate;
    private LocalDateTime createDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public LocalDateTime getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(LocalDateTime modifyDate) {
        this.modifyDate = modifyDate;
    }

    public LocalDateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }
}
